package com.zhw.mapper;

import com.zhw.pojo.entry.OrderDetail;
import com.zhw.pojo.vo.OrderFormVO;
import com.zhw.pojo.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {

    List<OrderVO> getOrder(Integer id);


    OrderFormVO getOrderByID(Integer id);

    @Select("select * from order_details where order_id=#{id}")
    List<OrderDetail> getOrderDetailByID(Integer id);
}
